﻿using System;
using System.Windows.Forms;

namespace PowerManager
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //Application.Run(new PowerManager());
            // Show the system tray icon.		
            using (var pi = new IconNotificator())
            {
                if (!IconNotificator.IsStartCopyProgramm())
                {
                    pi.Display();
                    // Make sure the application runs!
                    Application.Run();
                }
            }
        }
    }
}
